﻿<%@ Page Theme="BlueSkin" Title="نظام التدريب الالكتروني : الدعم الفني --> الخدمة الذاتية --> فيديو" Language="C#" MasterPageFile="~/LmsWebSite/MasterAR.master" AutoEventWireup="true" CodeFile="SupportVideoAR.aspx.cs" Inherits="SupportVideoAR" %>

<%@ Register src="MyCalender.ascx" tagname="MyCalender" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="right" class="heading">
               <a href="SupportMainAR.aspx">الدعم الفني</a> --> <a href="SelfServicesAR.aspx">الخدمة الذاتية</a> --> فيديو
            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidthWithMargins  direction" style="margin-bottom:10px;margin-left:30px;margin-right:30px;">
        
        <div class="floating direction aligning" style="width:300px;">
            <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
           
        </div>
        <div class="floating" style="font-size:1px;width:11px;height:1px;"></div>
        <div class="floating direction aligning" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="بحث" 
                onclick="btnSearch_Click" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
        
        </div>
            
        
        
        <div class="clearing" style="height:10px;"></div>

        <div class="aligning allWidthWithMargins  direction">
            <asp:GridView DataKeyNames="ID" ID="grdUsers" runat="server" 
                AutoGenerateColumns="False" AllowPaging="True" Font-Size="12px" 
                onpageindexchanging="grdUsers_PageIndexChanging" Width="840px" 
                onrowdatabound="grdUsers_RowDataBound" EnableModelValidation="True">
                
                
                <HeaderStyle HorizontalAlign="Center" />

                <RowStyle HorizontalAlign="Center" />

                <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="Label2" runat="server" Text="Label" >لا يوجد فيديو</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>
                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                        <HeaderTemplate>
                            <asp:Label ID="lblVideoTitleENHead" runat="server" Text="العنوان" Width="120px" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblVideoTitleENItem" runat="server" Text='<%#  Eval ("VideoTitleAR") %>' Width="120px" style="margin-top:10px;margin-bottom:10px;"></asp:Label>
                                                     
                        </ItemTemplate>
                        <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />
                    </asp:TemplateField>
                    
                    




                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblVideoDescriptionENHead" runat="server" Text="التفاصيل" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblVideoDescriptionENItem" runat="server" Text='<%#  Eval ("VideoDescriptionAR") %>' ></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                   



                   
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblVideoFileHead" runat="server" Text="ملف الفيديو" Width="120px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                                                     
                           <a href='<%# "./SupportVideos/" + Eval("VideoFile") %>' title="ملف الفيديو" target="_blank">تحميل</a>

                                                     
                        </ItemTemplate>
                    </asp:TemplateField>



                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label  runat="server" Text="حجم الملف بالميجابايت" Width="120px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                                                     
                           <asp:Panel ID="pnlFileSize" runat="server"></asp:Panel>

                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                   
                   
                    
                    
                    
                    
                    
                    
                    
                    
                    
                        
                           
                        
               
                
                
                
                </Columns>
                
                
            </asp:GridView>
        </div>
        
        
        
        
        <div class="clearing" style="width:1px;height:20px;"></div>
        
        
         
      
      <div class="clearing"></div>
    </div>
    
    
    
    
   
   
   <div class="clearing" style="height:10px"></div>

    <div class="allWidthWithMargins direction aligning" style="margin-left:30px;margin-right:30px">
        <div class="aligning direction" style="float:right">
                <asp:Button ID="btnBack" runat="server" Text="رجوع" CausesValidation="false" OnClientClick="history.go(-1);return false;" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
            </div>
        <div class="clearing" style="height:10px"></div>
    </div>
   
    </ContentTemplate>
    
   
    
    </asp:UpdatePanel>
</asp:Content>

